package com.xyy.saas.payment.dao.mapper;

import com.xyy.saas.payment.dao.model.PayAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PayAccountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PayAccount record);

    int insertSelective(PayAccount record);

    PayAccount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PayAccount record);

    int updateByPrimaryKey(PayAccount record);

    String getAccountIdByBusiness(@Param("businessIdType") String businessIdType, @Param("businessUserId") String businessUserId);

    PayAccount selectByBusiness(@Param("businessIdType") String businessIdType, @Param("businessUserId") String businessUserId);

    PayAccount selectByAccountId(String accountId);

    List<String> getAllEcPopAccountIds(@Param("list") List<String> businessUserIds);

}